<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title></title>
</head>
<body>
<script>
	function a(xx) {
		this.x=xx;
		console.log(this);
		return this;
   
	};
	var x = a(5);
	var y = a(6);
	console.log(x.x);   //undefined
	console.log(y.x);   //6
   /*
    function Foo(){
    	getName = function (){console.log(1);};
    	return this;
    }
    Foo.getName = function (){console.log(2);};
    Foo.prototype.getName = function (){console.log(3);};
    var getName = function (){console.log(4);};
    function getName(){console.log(5);};
 
    Foo.getName();
    getName();
    Foo().getName();
    getName();
    new Foo.getName();
    new foo().getName();
    new  new foo().getName();*/
</script>	
</body>
</html>